package com.hxzy.mapper;

import com.hxzy.dto.HouseRenovationSearchDTO;
import com.hxzy.entity.HouseRenovation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * RenovationMapper继承基类
 */
@Mapper
@Repository
public interface HouseRenovationMapper extends MyBatisBaseDao<HouseRenovation, Integer> {


    List<HouseRenovation> search(HouseRenovationSearchDTO houseRenovationSearchDTO);

    int existsName(@Param("id") Integer id,@Param("name") String name);

}